import create from 'zustand'

interface BearState {
    bears: {
        count: number
    },
    increasePopulation: Function
}

const useBearStore = create<BearState>((set) => ({
    bears: {
        count: 0
    },
    increasePopulation: () => set((state) => { state.bears.count++; return {...state}}),
}));

export default useBearStore;